Component({
  properties: {
    text: {
      type: String,
      value: '暂无数据'
    },
    image: {
      type: String,
      value: '/images/empty.png' // 默认图片，需要在项目中提供
    },
    showAction: {
      type: Boolean,
      value: false
    },
    actionText: {
      type: String,
      value: '刷新'
    }
  },

  methods: {
    onActionTap() {
      this.triggerEvent('action');
    }
  }
});